package design.patterns.behavioral.strategy;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/4/10 11:31
 */
public class LoginActivity {
    private LoginStrategy loginStrategy;

    public LoginActivity() {
    }

    public void setLoginStrategy(LoginStrategy loginStrategy) {
        this.loginStrategy = loginStrategy;
    }

    public void login(){
        loginStrategy.login();
    }
}
